home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12311 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  43 lines

  1. Newsgroups: comp.lang.c++,comp.lang.pascal.delphi.misc
  2. Path: mozart.unx.sas.com!news
  3. From: sdkkah@mvs.sas.com
  4. Subject: Calling all API experts !!
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <DoIMG1.F9y@unx.sas.com>
  7. Date: Tue, 19 Mar 1996 12:52:49 GMT
  8. X-Nntp-Posting-Host: 130.96.61.124
  9. Reply-To: sdkkah@mvs.sas.com
  10. Organization: SAS Institute Inc.
  11. X-Newsreader: IBM NewsReader/2 v1.02
  12.  
  13.  
  14. Hi, world
  15.  
  16. I am trying to make an application with a tool which just recently allowed
  17. calling Windows API's. The tool (The SAS System) itself is written in C++.
  18. Some API's works OK, but there's one I cant figure out how to use right.
  19. Its called GetProfileString. I need to access the [fonts] section of WIN.INI,
  20. and get all entries and values. But I dont know the number of entries to
  21. read, since this obviously varies. Is there some kind of trick that would
  22. allow me to loop through untill the last entry is read, without having to
  23. know the exact number of entries in each section ? 
  24.  
  25. Getting the font names is just getting me half the way. I also need to
  26. know the point size and property (Bold,Italic etc..). Does anyone know
  27. where I can get this information ?
  28.  
  29. Finally, can anyone recommend any good documentations as to how
  30. Windows API's are dealt with in general ?
  31.  
  32. All kind of help is appreciated.
  33.  
  34. Cheers,
  35. Karsten
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.